#version 450 core
in vec3 vertex_color;
in vec2 vertex_tex_coord;
out vec4 fragment_color;
layout (location = 0) uniform vec3 line_color;
layout (location = 1) uniform int wireframe = 0;
layout (binding = 0) uniform sampler2D rect_texture;
void main()
{
    if (wireframe == 0 )
        fragment_color = vec4(vertex_color, 1.0);
    else if (wireframe == 1)
		fragment_color = vec4(line_color, 1.0);
    else
        fragment_color = texture(rect_texture, vertex_tex_coord);
}

